package com.daotingli.backendprograms.Service.Login;

import com.daotingli.backendprograms.Repository.Login.LoginRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import java.util.Map;

@Component
public class LoginService {
    @Autowired
    private LoginRepository loginRepository;


    public Map login(String username, String password,  String identity ) {

        return loginRepository.login(username,password,identity);
    }

}
